package com.jar.exercise.设计模式.单例.饿汉静态代码块;

/**
 * @author 松鼠
 * @className Singleton
 * @description TODO
 * @date 2019-11-08 13:51
 */
public class Singleton {
	private Singleton() {
	}

	private static Singleton instance;

	static {
		instance = new Singleton();
	}

	public static Singleton getInstance() {
		return instance;
	}
}
